package stark.app.function.piano;

import com.stark.piano.lib.ui.PianoFreeTrainActivity;
import com.stark.piano.lib.ui.StaffExerciseActivity;

import stark.app.R;
import stark.app.databinding.FragmentPianoDemoBinding;
import stark.common.basic.base.BaseNoModelFragment;

/**
 * Author：daizhongbin on 2023/7/7
 * Email：1027154338@qq.com
 * Desc:
 */
public class PianoDemoFragment extends BaseNoModelFragment<FragmentPianoDemoBinding> {
    @Override
    protected int onCreate() {
        return R.layout.fragment_piano_demo;
    }

    @Override
    protected void initView() {
        mDataBinding.btnPianoTrain.setOnClickListener(v -> {
            startActivity(PianoFreeTrainActivity.class);
        });
        mDataBinding.btnStaff.setOnClickListener(v -> {
            startActivity(StaffExerciseActivity.class);
        });
    }

    @Override
    protected void initData() {

    }
}
